<!doctype html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta name="keywords" content="编程,PHP,内容,管理">
		<meta name="description" content="PHP内容管理系统">
		<title>编程 栏目 - 内容管理系统</title>
		<link rel="stylesheet" href="/static/index/css/style.css">
		<script src="/static/index/js/jquery.2.1.4.min.js"></script>
		<script src="/static/index/js/common.js"></script>
	</head>
	<body>
		<!--页面顶部-->
		<div class="top">
			<div class="top-container">
				<div class="top-logo">
					<a href="./"><img src="/static/index/image/logo.png" alt="内容管理系统"></a>
				</div>
				<div class="top-nav">
					<a href="../" class="">首页</a>
					{foreach $data as $v}
						{if $v.id == $id.id}
						<a href="http://www.tp6cms.com/index.php/home/index/list.html?cid={$v.id}" class="curr" name="aa">{$v.name}</a>
						{else\}
						<a href="http://www.tp6cms.com/index.php/home/index/list.html?cid={$v.id}" class="" name="aa">{$v.name}</a>
						{/if}
					{/foreach}
					<a href="about.php" class="">联系我们</a>
				</div>
				<div class="top-toggle jq-toggle-btn"><i></i><i></i><i></i></div>
			</div>
		</div>
		<!--页面内容-->
		<div class="main">
			<!-- 幻灯片模块 -->
			<!-- 文章列表模块 -->
			<div class="main-body">
				<div class="main-wrap">
					<div class="main-left">
						<div class="al">
							<div class="al-title"><h1>{$id.name}</h1></div>
							{foreach $article  as $v}
							<div class="al-each">
								<div class="al-info"><a href="http://www.tp6cms.com/index.php/home/index/show.html?id={$v.id}">{$v.title}</a></div>
								<div class="al-desc">{$v.description}</div>
								{if isset($v.description)}
								<div class="al-img">
									<a href="http://www.tp6cms.com/index.php/home/index/show.html?id={$v.id}">
										<img src="{$v.thumb}" alt="点击阅读文章">
									</a>
								</div>
								{/if}
								<div class="al-more">
									<span>作者：{$v.user.username} | 发表于：{$v.create_time}</span>
									<a href="http://www.tp6cms.com/index.php/home/index/show.html?id={$v.id}">查看原文</a>
								</div>
							</div>
							{/foreach}
							{$article|raw}
						</div>
					</div>
					<div class="main-right">
						<div class="si">
							<!-- 栏目列表 -->
							<div class="si-each">
								<div class="si-title">内容栏目</div>
								<div class="si-p1">
									{foreach $son  as $v}
										<a href="http://www.tp6cms.com/index.php/home/index/list.html?cid={$v.id}" title="{$v.name}" name="bb">{$v.name}</a>
									{/foreach}
								</div>
							</div>
							<!-- 浏览历史 -->
							<div class="si-each">
								<div class="si-title">浏览历史</div>
								<div class="si-p2">
									{volist name="history" id="vo"  length='5'}
										{if is_array($history)}
											<p><a href="http://www.tp6cms.com/index.php/home/index/show.html?id={$key}">{$vo}</a></p>
										{else/}
											<p><a href="http://www.tp6cms.com/index.php/home/index/show.html?id={$vo.article_id}">{$vo.article.title}</a></p>
										{/if}
									{/volist}
								</div>
							</div>
							<!-- 最热文章 -->
							<div class="si-each">
								<div class="si-title"><span class="si-p3-top">TOP 10</span> 热门文章</div>
								<div class="si-p3">
									{foreach $hot as $v}
									<p><a href="http://www.tp6cms.com/index.php/home/index/show.html?id={$v.id}">{$v.title}</a></p>
									{/foreach}
								</div>

							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<!--页面尾部-->
		<div class="footer">PHP内容管理系统　本系统仅供参考和学习</div>
	</body>
</html>